/**************************************************************************************************
/// Copyright (c) 2006-2018, RT-Thread Development Team
/// All rights reserved.
///
/// \author: Alex
///
/// \file: led.h
/// \brief: Header for led.
///
///
///
/// \version: 1.0
/// \date: Mar. 04, 2021
**************************************************************************************************/
    
#ifndef _LED_H_
#define _LED_H_
        
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif
            
/**************************************************************************************************
*                              Macro definition                                                   *
**************************************************************************************************/
#define RED_LED_LIGHT               0
#define RED_LED_TWINKLE             1
#define GREEN_LED_LIGHT             2
#define GREEN_LED_TWINKLE           3
#define YELLOW_LED_LIGHT            4
#define YELLOW_LED_TWINKLE          5

#define RED_LED_START_TWINKLE       6
#define GREEN_LED_START_TWINKLE     7
#define YELLOW_LED_START_TWINKLE    8

#define RED_LED_PIN                 GET_PIN(D, 14)
#define GREEN_LED_PIN               GET_PIN(D, 13)
#define YELLOW_LED_PIN              GET_PIN(D, 15)


#define SYSTEM_LED_PIN              GET_PIN(A,11)

/**************************************************************************************************
*                              Enumeration type definition                                        *
**************************************************************************************************/

/**************************************************************************************************
*                              Struct type definition                                             *
**************************************************************************************************/

/**************************************************************************************************
*                              Functions declaration                                              *
**************************************************************************************************/
void Led_Init(void);
void Led_TaskProc(void);
void Led_MoveState(unsigned int uiLedState);

#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif
        
#endif


